package com.zzyl.nursing.task;
/*
 *TODO
 *@Autor Adam
 *@Date  2025/7/28  15:08
 *
 */

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
@Slf4j
public class Test {

    @Scheduled(cron = "0/5 * * * * ?" )
    public void demo(){
        log.info("当前的时间为:{}", LocalDateTime.now());
    }
}
